package com.iflytek.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.iflytek.entity.Administrator;
import com.iflytek.query.AdministratorQuery;

import java.util.List;

/**
* @author Administrator
* @description 针对表【administrator】的数据库操作Service
* @createDate 2022-09-24 09:36:46
*/
public interface AdministratorService extends IService<Administrator> {

    int insertAll(Administrator administrator);

    int update(Administrator administrator);

    int updatePassword(Integer adId,String md5Password);
    int updateFreeze(Integer adId,Boolean isFreeze);
    int deleteById(Integer adId);
    int deleteByIds(String[] adIds);

    Administrator getAdministratorById(Integer adId);

    Administrator getAdministratorByAccount(String account);

    List<Administrator> getAdministratorList(AdministratorQuery query);
}
